package Thread;

public class ThreadDemo6 {

    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(()->{
            for (int i = 3; i > 0; i--) {
                System.out.println(i);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
        t.start();
        Thread.sleep(5000);
        System.out.println("准备!");
        try {
            t.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Go!");
    }

}
